-- GENERATED SPELL FOR [Death's Head Cultist] --


function spell0_7872(pUnit, Event) --@Death & Decay,n/a--
pUnit:FullCastSpellOnTarget(11433,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7872', 12000, 1)
end

function spell1_7872(pUnit, Event) --@Shadow Bolt,n/a--
pUnit:FullCastSpellOnTarget(9613,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7872', 3000, 1)
end

function Sorts_7872(pUnit, Event)
local choix_sorts_7872 = math.random(0, 1)
if choix_sorts_7872 == 0 then
pUnit:RegisterEvent('spell0_7872', 1, 1)
end
if choix_sorts_7872 == 1 then
pUnit:RegisterEvent('spell1_7872', 1, 1)
end
end

function mob7872_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7872', math.random(1500, 3000), 1)
end

function mob7872_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7872_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7872_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7872, 1, 'mob7872_Action')
RegisterUnitEvent(7872, 2, 'mob7872_Leave')
RegisterUnitEvent(7872, 3, 'mob7872_Kill')
RegisterUnitEvent(7872, 4, 'mob7872_Die')
